
// 云函数入口文件
const cloud = require('wx-server-sdk')
// const db = cloud.database()
cloud.init({
  env: "zmyy-6uke0"
})
// 云函数入口函数
exports.main = async (event, context) => {
  return await cloud.database().collection('info')
    .where({    //数据库名称txl
      // _openid: "ovpns4hN0AigUxBvnMjDlBho-EeQ"
      // gz_address: "静湖南苑"
      gz_address: cloud.database().command.eq("静湖南苑").or(cloud.database().command.eq("静湖南苑A区")).or(cloud.database().command.eq("静湖南苑A")).or(cloud.database().command.eq("静湖南苑B区"))
    })
    //.orderBy('name', 'desc')//按字段排序
    .get()
}




